package com.njxzc.igo.POJO;

import java.util.List;

import com.njxzc.igo.model.ProductType;
import com.njxzc.igo.model.Products;

public class ClassifiedSaler implements Comparable<ClassifiedSaler>{
	private ProductType pt ;
	private List<String> salers;
	public ProductType getPt() {
		return pt;
	}
	public void setPt(ProductType pt) {
		this.pt = pt;
	}
	public List<String> getSalers() {
		return salers;
	}
	public void setSalers(List<String> salers) {
		this.salers = salers;
	}
	@Override
	public String toString() {
		return "ClassifiedSaler [pt=" + pt + ", salers=" + salers + "]";
	}
	public ClassifiedSaler() {
		// TODO Auto-generated constructor stub
	}
	public ClassifiedSaler(ProductType pt, List<String> salers) {
		super();
		this.pt = pt;
		this.salers = salers;
	}
	@Override
	public int compareTo(ClassifiedSaler o) {
		return this.getPt().getProductType()>o.getPt().getProductType()?1:0;
	}
	
}
